#ifndef SPRITEAREA_H_INCLUDED
#define SPRITEAREA_H_INCLUDED

#include <gtkmm/main.h>
#include <gtkmm.h>
#include <iostream>
#include <vector>
#include "Misc.h"
#include "Debug.h"

class SpriteArea : public Gtk::DrawingArea
{
    public:
        SpriteArea();
        virtual ~SpriteArea();

    protected:
        RectInfo r;
        Glib::RefPtr<Gdk::Pixbuf> m_image;
        virtual bool on_expose_event(GdkEventExpose* event);

    public:
        void setImage(Glib::RefPtr<Gdk::Pixbuf> &image, int src_x, int src_y, int width, int height);
        bool repaint(void);
};


#endif // SPRITEAREA_H_INCLUDED
